<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="jquery.js" type="text/javascript"></script>
<script language="javascript">
	chrome.tabs.onUpdated.addListener(function(tabId, info, tab) {
		if (info.status == "loading") {
			chrome.tabs.getSelected(null, function(tab) {
				$.get("http://www.urlforce.com/v2/workinghard.php?url="
						+ tab.url + "&callback=?", function(data) {
					if (data != 'URL not found.') {
						chrome.browserAction.setBadgeText({
							text : String('1')
						});
					} else {
						chrome.browserAction.setBadgeText({
							text : String('')
						});
					}
					localStorage["popup_var"] = data;
				});
			});
		}
	});
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

</body>
</html>